// 加载company下所有router文件
const companyRouters = require.context('./company', false, /\.js$/)
let routeArr = []
companyRouters.keys().forEach(path =>{
  routeArr.push(...companyRouters(path).default)
})

export default [
	// 企业空间
	{
		path: '/company',
		component: 'company/layout',
		meta: {
			title: '企业空间',
      name: 'companySpace'
		},
		children: [
			...routeArr,
		]
	},
	// 视频培训（我的培训）详情页
	{
		path: '/comOnlineTrainDetail',
		name: 'comOnlineTrainDetail',
		component: 'company/myTraining/comOnlineTrainDetail',
		meta: {
			title: '视频培训详情页'
		}
	}
]
